blob: 76460b4b74e768c671b639bb35a3c866435e260c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
(
(data-mutable "shed__namespace__An_Example" private (data-ptr null))
(data-mutable "shed__namespaceIsInited__An_Example" private (bool false))
(
function-decl
"shed__runtime__gc_alloc"
params=((param "size" int) (param "runtime_type_tag" int32))
return-type=data-ptr
)
(
function-decl
"shed__runtime__gc_get_root_stack_index"
params=()
return-type=int
)
(
function-decl
"shed__runtime__gc_set_root_stack_index"
params=((param "gc_root_stack_index" int))
return-type=void
)
(
function-decl
"shed__runtime__gc_push_root"
params=((param "gc_root" int))
return-type=void
)
(
function
"shed__function__f__0"
visibility=private
locals=((param "closurePointer__0" data-ptr) (val "gcRootStackIndex__0" int) (val "tmp__0" int))
return-type=int
body=(
(call (local "gcRootStackIndex__0") "shed__runtime__gc_get_root_stack_index" ())
(local-store (local "tmp__0") (int-const 0))
(call _ "shed__runtime__gc_set_root_stack_index" ((local "gcRootStackIndex__0")))
(call _ "shed__runtime__gc_push_root" ((local "tmp__0")))
(return (local "tmp__0"))
)
)
(
function
"shed__namespaceInit__An_Example"
visibility=private
locals=((val "namespaceValue__0" data-ptr) (val "closure__f__0" int) (val "closurePointer__f__0" data-ptr))
return-type=void
body=(
(call (local "namespaceValue__0") "shed__runtime__gc_alloc" ((int-const (byte-size-of (struct ((struct (data-ptr int32 int32)) (struct (int int)))))) (int32-const 3)))
(
memory-store
pointer=(local "namespaceValue__0")
layout=(struct ((struct (data-ptr int32 int32)) (struct (int int))))
element-offsets=(1 0)
value=(int-const 0)
)
(
memory-store
pointer=(local "namespaceValue__0")
layout=(struct ((struct (data-ptr int32 int32)) (struct (int int))))
element-offsets=(1 1)
value=(int-const 0)
)
(
memory-store
pointer=(data-ptr-const "shed__namespace__An_Example")
layout=data-ptr
element-offsets=()
value=(local "namespaceValue__0")
)
(call (local "closurePointer__f__0") "shed__runtime__gc_alloc" ((int-const (byte-size-of (struct ((struct (data-ptr int32 int32)) (struct (function-ptr (struct ()) (struct ()))))))) (int32-const 4)))
(
memory-store
pointer=(local "closurePointer__f__0")
layout=(struct ((struct (data-ptr int32 int32)) (struct (function-ptr (struct ()) (struct ())))))
element-offsets=(1 0)
value=(function-ptr-const "shed__function__f__0")
)
(data-ptr-to-int (local "closure__f__0") (local "closurePointer__f__0"))
(
memory-store
pointer=(data-ptr-const "shed__namespaceIsInited__An_Example")
layout=bool
element-offsets=()
value=(bool-const true)
)
(return-void)
)
)
(
function
"shed__namespaceImport__An_Example"
visibility=public
locals=((val "tmp__0" bool) (val "namespacePointer__0" int) (val "namespaceValue__0" int))
return-type=int
body=(
(
memory-load
(local "tmp__0")
pointer=(data-ptr-const "shed__namespaceIsInited__An_Example")
layout=bool
element-offsets=()
)
(
if
()
(local "tmp__0")
(
block
(
)
results=()
)
(
block
(
(call _ "shed__namespaceInit__An_Example" ())
)
results=()
)
)
(
memory-load
(local "namespacePointer__0")
pointer=(data-ptr-const "shed__namespace__An_Example")
layout=data-ptr
element-offsets=()
)
(data-ptr-to-int (local "namespaceValue__0") (local "namespacePointer__0"))
(return (local "namespaceValue__0"))
)
)
)
|